package com.cmower.baeldung.string1;

import org.checkerframework.checker.units.qual.K;

import java.util.HashMap;

public class StringPoolTest {
    String s = "沉默王二";
    public static void main(String[] args) {
        StringPoolTest test = new StringPoolTest();
        Runnable r = () -> {
            test.s = "沉默王三";
            System.out.println(test.s);
        };
        new Thread(r).start();

        Runnable r1 = () -> {
            System.out.println(test.s);
        };
        new Thread(r1).start();

//        HashMap
    }
}
